home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 44
/
Aminet 44 (2001)(GTI - Schatztruhe)[!][Aug 2001].iso
/
Aminet
/
util
/
rexx
/
rmh.lha
/
RMH
/
Examples
/
ai.rexx
next >
Wrap
OS/2 REXX Batch file
|
2001-05-24
|
695b
|
32 lines
/* */
l="rmh.library";if ~show("L",l) then;if ~addlib(l,0,-30) then exit
ai=AddAppIcon("Prova","ram:disk")
as=AppIconSignal(ai)
do while 1
rsig=Wait(or(as,2**12))
if and(rsig,2**12)~=0 then exit
if and(rsig,as)~=0 then call handleAI(ai)
end
exit
handleAI:
parse arg ai
handle.wait=0
num=HandleAppIcon(ai,"HANDLE")
do i=0 to num-1
select
when handle.i.class="DOUBLECLICK" then say "DOUBLECLICK"
when handle.i.class="DROP" then do
say handle.i.dropnum
do j=0 to handle.i.dropnum-1
say handle.i.name.j handle.i.lock.j
end
end
end
end
return